Skip to content

Conversation

@danxuliu
Copy link
Member

@danxuliu danxuliu commented Jun 4, 2021

Follow up to #5693

In #5693 publishing permissions can be set for each participant. However, by default all participants have publishing permissions, and they need to be explicitly revoked. This pull request introduces a setting for conversations to define whether everyone or only moderators should be able to publish by default in the conversation.

For now this just contains some commits salvaged from a previous version of #5693, but they might be useful to implement the feature.

@danxuliu danxuliu added this to the 💖 Next Major (22) milestone Jun 4, 2021
@danxuliu danxuliu force-pushed the allow-to-set-default-publishing-permissions-in-a-conversation branch from b13af27 to efa5394 Compare June 9, 2021 10:02
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good so far, happy to see JS tests :-)

public function updatePublishingPermissions(Room $room, Participant $participant, int $newState): void {
$attendee = $participant->getAttendee();

if ($attendee->getActorType() === Attendee::ACTOR_GROUPS || $attendee->getActorType() === Attendee::ACTOR_CIRCLES) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if ACTOR_EMAILS will pop up here, might be safer to go with an allow list instead of deny list ?

icon="icon-audio"
:close-after-click="true"
@click="grantPublishingPermissions">
{{ t('spreed', 'Grant publishing permissions') }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might need to double check if "publishing permission" is something that users will easily understand.
on the technical level this term is fine though

@PVince81
Copy link
Member

what's missing ? a checkbox list would be nice, just in case someone needs to take over...

@nickvergessen
Copy link
Member

The feedback from other teams and useful global stats/options we want to describe and have.

@danxuliu danxuliu force-pushed the allow-to-set-default-publishing-permissions-in-a-conversation branch from efa5394 to 52f82fe Compare September 1, 2021 22:15
This is needed to add other actions in the menu that can be applied also
to owners.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu force-pushed the allow-to-set-default-publishing-permissions-in-a-conversation branch from 52f82fe to 9d99aa2 Compare September 1, 2021 22:26
Publishing permissions can be set by moderators or owners on any
participant.

For now there is a coarse handling of publishing permissions, so it is
only possible to grant or revoke all permissions, not each one of the
individual permissions.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Only moderators of group and public conversations can set the value.

For simplicity, and to avoid chaos if everyone is allowed to publish
during a call with a lot of listener-only participants, the value can be
set only if there is no active call.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu force-pushed the allow-to-set-default-publishing-permissions-in-a-conversation branch from 9d99aa2 to 745067d Compare September 1, 2021 22:43
@nickvergessen
Copy link
Member

I'm closing this in favor of the plan in #6190 (comment)
The main difference is that permissions will be granted individually for users and all for moderators, instead of none-or-all depending on the users level.

@nickvergessen nickvergessen deleted the allow-to-set-default-publishing-permissions-in-a-conversation branch July 27, 2023 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants